projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3699c37
)
(tex-validate-buffer): Use distinct strings rather than
author
John Paul Wallington
<jpw@pobox.com>
Mon, 30 Aug 2004 19:04:18 +0000
(19:04 +0000)
committer
John Paul Wallington
<jpw@pobox.com>
Mon, 30 Aug 2004 19:04:18 +0000
(19:04 +0000)
programatically constructing message.
lisp/textmodes/tex-mode.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/tex-mode.el
b/lisp/textmodes/tex-mode.el
index 115dd6f88f0c7dd4cb3209ce9f802395890d343c..1c4b89f0a62933b41b3dd244c6f716f590340b30 100644
(file)
--- a/
lisp/textmodes/tex-mode.el
+++ b/
lisp/textmodes/tex-mode.el
@@
-1145,9
+1145,10
@@
on the line for the invalidity you want to see."
(if no-matches
(insert "None!\n"))
(if (interactive-p)
- (message "%s mismatch%s found"
- (if no-matches "No" num-matches)
- (if (> num-matches 1) "es" ""))))))))
+ (message (cond (no-matches "No mismatches found")
+ ((= num-matches 1) "1 mismatch found")
+ (t "%d mismatches found"))
+ num-matches)))))))
(defun tex-validate-region (start end)
"Check for mismatched braces or $'s in region.